#ifndef DRV_PI_H
#define DRV_PI_H
#include <stdint.h>

#define FILTER_TIMES 5
typedef enum {
    ePi_0,      //DPI24
    ePi_1,      //DPI25
    ePi_2,      //DPI26
    ePi_3,      //DPI27
    ePi_4,      //DPI28
    ePi_5,      //DPI29
    ePi_6,      //DPI30
    ePi_7,      //DPI31
    ePiNumer
}PI_NUMBER_t;

extern void drv_pi_init(void);

extern uint32_t get_pi(uint8_t ch);

/**
 * @brief PI输入丢失处理,可放在200ms中断或者任务中处理
*/
void pi_disconnect_handle(void);
#endif


